/*
 * \brief  I/O-memory session interface
 * \author Christian Helmuth
 * \date   2006-08-01
 */

/*
 * Copyright (C) 2006-2009 Christian Helmuth
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__IO_MEM_SESSION__IO_MEM_SESSION_H_
#define _INCLUDE__IO_MEM_SESSION__IO_MEM_SESSION_H_

#include <dataspace/capability.h>

namespace Genode {

	typedef Typed_capability<Dataspace, Dataspace_capability> Io_mem_dataspace_capability;

	class Io_mem_session
	{
		protected:

			enum Opcode { DATASPACE };

		public:

			static const char *service_name() { return "IO_MEM"; }

			virtual ~Io_mem_session() { }

			/**
			 * Request dataspace containing the IO_MEM session data
			 *
			 * \return  capability to IO_MEM dataspace
			 *          (may be invalid)
			 */
			virtual Io_mem_dataspace_capability dataspace() = 0;
	};
}

#endif /* _INCLUDE__IO_MEM_SESSION__IO_MEM_SESSION_H_ */
